package com.seal.yoyoshop.dao;

import com.seal.yoyoshop.bin.Order;

import java.util.List;

public interface OrderDao {
    boolean InsertOrder(Order order);

    int SelectidByOrder(Order order);

    Order SelectOrderById(int orderId);

    boolean updateOrder(Order order);

    List<Order> SelectOrderByUserId(Integer userid);

    List<Order> SelectOrderList(Integer page, Integer size);

    long selectCount();

    List<Order> SelectOrderList(Integer status, Integer page, Integer size);

    long selectCount(Integer status);
}
